#!/usr/bin/python

import urllib.request
from bs4 import BeautifulSoup

def getHtml(url):
        html_string=''
        try:
                html_bytes=urllib.request.urlopen(url).read()
                html_string=html_bytes.decode('utf-8')
        except urllib.error.URLError as e:
                print(e.reason)
                return None
        soup=BeautifulSoup(html_string,'html.parser')
        return soup
